DATA SEGMENT
	PORTC DB 24H,44H,04H,44H,04H,44H,04H
		  DB 81H,82H,80H,82H,80H,82H,80H
		  DB 0FFH
DATA ENDS
CODE SEGMENT
	ASSUME CS:CODE,DS:DATA
START:
	MOV	AX,DATA
	MOV	DS,AX
	MOV	DX,213H
	MOV	AL,90H
	OUT	DX,AL
	MOV	DX,212H
REON:
	MOV	BX,0
ON:
	MOV	AL,PORTC[BX]
	CMP	AL,0FFH
	JZ REON
	OUT	DX,AL
	INC	BX
	MOV	CX,500H
	TEST	AL,21H
	JZ	DE0
	MOV	CX,0000
DE0:
	MOV	DI,00006FH
DE1:
	DEC	DI
	JNZ DE1
	LOOP DE0
	PUSH DX
	MOV	AH,06H
	MOV	DL,0FFH
	INT	21H
	POP	DX
	JZ ON
EXIT:
	MOV	AH,4CH
	INT 21H
CODE ENDS
	END START